package com.wbt.bambootown.mvp.contract;


import com.wbt.bambootown.entity.Facility;
import com.wbt.bambootown.entity.CameraDevices;
import com.wbt.bambootown.entity.Farms;
import com.wbt.bambootown.mvp.frame.base.BasePresenter;
import com.wbt.bambootown.mvp.frame.base.BaseView;

import java.util.List;

public interface HomeContract {
    interface View extends BaseView {
        void showError(String errorMsg);
        void showFarmsSuccess(List<Farms> farms);
        void showFacilitiesSuccess(List<Facility> facilities);
        void showCameraSuccess(List<CameraDevices> devices);
    }

    interface Presenter extends BasePresenter {
        void getFarms(String id);
        void getFacilities(int id);
        void getCamera(int id);
    }
}
